//
//  ZPZNetRequest+HotProductList.m
//  项目二网络请求
//
//  Created by 张峥 on 16/7/23.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ZPZNetRequest+HotProductList.h"


@implementation ZPZNetRequest (HotProductList)

+ (void)getHotProductListTotalNum:(NSString *)totalNum UserId:(NSString *)userId comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:totalNum]) {
        [numDic setObject:totalNum forKey:@"totalNum"];
    }
    if (![LStringUtils isTextEmpty:userId]) {
        [numDic setObject:userId forKey:@"userId"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appIndex/getHotProductList" requestType:ZLApRequestPost Comletion:comletion];
}

+ (void)getHotProductDetailId:(NSString *)Id comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:Id]) {
        [numDic setObject:Id forKey:@"id"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appIndex/getHotProductDetail" requestType:ZLApRequestPost Comletion:comletion];
}

@end
